package com.minidb.sql_compiler;

import com.minidb.utils.TokenType;

public class Token {
    public final TokenType type;
    public final String lexeme; // 原文（字符串常量已去引号）
    public final int line;
    public final int col;

    public Token(TokenType type, String lexeme, int line, int col) {
        this.type = type;
        this.lexeme = lexeme;
        this.line = line;
        this.col = col;
    }

    @Override public String toString() {
        return "[" + type + ", " + lexeme + ", " + line + ", " + col + "]";
    }
}
